package com.molichuxing.services.infrastructure.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.convertor.Convert;
import com.molichuxing.services.infrastructure.dao.PaymentHistoryMapper;
import com.molichuxing.services.infrastructure.dto.request.create.PaymentHistoryCreateDto;
import com.molichuxing.services.infrastructure.service.PaymentHistoryService;

@Service("paymentHistoryService")
public class PaymentHistoryServiceImpl implements PaymentHistoryService {

	@Resource
	private PaymentHistoryMapper paymentHistoryMapper;

	@Override
	public boolean create(PaymentHistoryCreateDto createDto) {
		paymentHistoryMapper.create(Convert.toPaymentHistoryBean(createDto));
		return true;
	}

}
